Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 9, 2026

Summary

This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions.

Changes

  • Migrated .github/workflows/prepare_batch_release.yml to Craft reusable workflow

Documentation

See https://getsentry.github.io/craft/github-actions/ for more information.

This PR migrates from the deprecated action-prepare-release to the new
Craft GitHub Actions (reusable workflow or composite action).

Changes:
- Migrate .github/workflows/prepare_batch_release.yml to Craft reusable workflow
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Add support for OpenTelemetry messaging/queue system spans by saviogl in #2685

Bug Fixes 🐛

  • Prevent SDK crash when SDK logging fails by dingsdax in #2817

Build / dependencies / internal 🔧

  • (release) Switch from action-prepare-release to Craft by BYK in #2828

Other

  • Handle more extra attribute types when logging by solnic in #2815
  • Implement new Sentry.metrics functionality by sl0thentr0py in #2818
  • Automatic collection of Sequel queries by solnic in #2814
  • Ignore new rails rate limit errors by camallen in #2774
  • Handle empty frames case gracefully with local vars by sl0thentr0py in #2807

🤖 This preview updates automatically when you update the PR.

The previous migration incorrectly removed the GitHub App token
authentication step. This commit restores it by switching to the
composite action pattern which preserves the auth flow.
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/craft@v2

This comment was marked as outdated.

private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v4

- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent checkout version comments across workflow files

Medium Severity

The same actions/checkout commit hash 34e114876b0b11c390a56381ad16ebd13914f8d5 is used across all workflow files, but the version comments are inconsistent: prepare_batch_release.yml says # v4 while all other files say # v2. A single commit hash cannot represent two different versions. If this hash is actually from v2, this represents an unintended downgrade from v4 to v2 across most workflows, potentially causing compatibility issues. The version comment in one of these locations is incorrect.

Additional Locations (2)

Fix in Cursor Fix in Web

description: Version to release
required: true
description: Version to release (or "auto")
required: false
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing default value for optional version input

Medium Severity

The version input changed from required: true to required: false with a description saying "(or 'auto')", implying auto-detection when left empty. However, no default value is set. When users leave the field empty expecting auto-detection, an empty string is passed to the Craft action at line 38, which may cause the release workflow to fail or behave unexpectedly since Craft likely expects either a valid semver or the literal string "auto".

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants